package com.demo.test;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
@Data
@AllArgsConstructor
public class Apple {

    private Integer id;
    private String name;
    private BigDecimal money;
    private Integer num;
    //private  Long parentId;

    private  Mianbao  mianbao;
    private  Shuiguo  shuiguo;





    public Apple(Integer id, String name, BigDecimal money, Integer num) {
        this.id = id;
        this.name = name;
        this.money = money;
        this.num = num;
    }

    public Apple() {
    }
}
